package com.traffic.api.jedis;

/**
 * IKeyNamingPolicy制定全局性的 key 命名策略
 */
public interface NamingRule {

	String getKeyName(Object key);

	static final NamingRule defaultKeyNamingPolicy = new NamingRule() {
		public String getKeyName(Object key) {
			return key.toString();
		}
	};
}
